package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.dto.DishDto;
import com.itheima.reggie.entity.Dish;

import java.util.List;

/**
 * @author wc.L
 * @date 2022/4/26 15:47
 */
public interface DishService extends IService<Dish> {
    //新增菜品,同时插入菜品对应的口味数据.
    public void saveWithFlavor(DishDto dishDto);
    //修改菜品.
    public void updateWithFlavor(DishDto dishDto);

    public void delWithFlavorByID(List<Long> id);
    //根据id查询对应的菜品信息和口味信息

    public DishDto getByIdWithFlavor(Long id);
}
